package com.yunji.aggregate.model.vo.stock;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StockStatisticsVO extends BaseDO {

    @ApiModelProperty("库存ID")
    private Long stockId;

    @ApiModelProperty("所属单位ID")
    private Long belongId;

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("全部库存")
    @Excel(name = "全部库存", width = 15)
    private BigDecimal allStock;

    @ApiModelProperty("可用库存")
    @Excel(name = "可用库存", width = 15)
    private BigDecimal usableStock;

    @ApiModelProperty("不可用库存")
    @Excel(name = "不可用库存", width = 15)
    private BigDecimal disableStock;

    @ApiModelProperty("占用库存")
    @Excel(name = "占用库存", width = 15)
    private BigDecimal frozenStock;

    @ApiModelProperty("预警值")
    @Excel(name = "预警值", width = 15)
    private BigDecimal warmValue;

    @ApiModelProperty("删除状态 0-未删除 1-已删除")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty("sku")
    @Excel(name = "sku", width = 15)
    private String sku;

    @ApiModelProperty("成本价")
    @Excel(name = "成本价", width = 15)
    private BigDecimal costPrice;

    @Excel(name = "商品类型", width = 15)
    @ApiModelProperty("商品类型")
    private Integer productType;

    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("所属单位名称")
    @Excel(name = "所属单位名称", width = 15)
    private String belongName;

    @ApiModelProperty("单位ID")
    private Long unitId;

    @ApiModelProperty("单位名称")
    @Excel(name = "单位名称", width = 15)
    private String unitName;

    @ApiModelProperty("画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    @ApiModelProperty("预警状态 0-否 1-是")
    private Integer warmStatus;
}
